<template>
  <div class="home">
    <el-card>
      <div class="main">
        <div class="avatar">
          <img :src="UserStore.Avatar" alt="">
        </div>
        <div class="main_right">
          <h3>{{ getTime() }}{{ UserStore.username }}</h3>
          <p>硅谷甄选运营平台</p>
        </div>
      </div>
    </el-card>
    <div class="bottom">
      <SvgIcon name="welcome" width="500" height="400"></SvgIcon>
    </div>
  </div>
</template>

<script setup lang="ts">
import getTime from '@/utils/gethours'
import { useUserStore } from '@/stores/user';
import SvgIcon from '@/components/SvgIcon.vue';
const UserStore = useUserStore()
</script>

<style lang="scss" scoped>
.home {
  padding: 10px;

  .main {
    display: flex;

    .avatar {
      img {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        margin-right: 10px;
      }
    }

    .main_right {
      padding-top: 10px;

      h3 {
        font-size: 25px;
        font-weight: 800;
        margin-bottom: 25px;
      }

      p {
        color: darkgray;
      }
    }
  }

  .bottom {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
</style>
